<?php
	require "db.php";
	//php4 $dataCo=new dataControl();
	//$db=$dataCo->getInstance('mysql');
	///php5
	$db=dataControl::getInstance('mysql');
	print_r($db->getRecord("admin"));
	$db->close();

	echo '<br>------------------------------------------------------<br>';
	$db=dataControl::getInstance('access');
	print_r($db->getRecord("admin"));
	$db->close();
	echo '<br>------------------------------------------------------<br>';
	//print_r($db->getPageRecord("admin","adminId","*",4,1));
	$db=dataControl::getInstance("odbc_mssql");
	$product=$db->getPageRecord("product","productId","productId,productName",4,1);
	print_r($product);
	$db->close();
	echo '<br>------------------------------------------------------<br>';
	$db=dataControl::getInstance("mssql");
	$product=$db->getPageRecord("product","productId","productId,productName",4,1);
	print_r($product);
	$db->close();	
?>